﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FeCMS.Common.Interface;

namespace Test.MockClass
{
    public class MockEvenNumberFilterClass : IFilter<int>
    {
        /// <summary>
        ///     只要能被2整除的数都过滤
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public bool Compare(int t)
        {
            if (t % 2 == 0)
            {
                return false;
            }
            return true;
        }

        public bool Compare(int t, out bool isBreak)
        {
            throw new NotImplementedException();
        }
    }
}
